﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace iTaskService.Models
{
    public class Task
    {
        public int Task_ID { get; set; }
        public String Name { get; set; }
        public String Description { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
        public TaskPriority Priority { get; set; }
        public bool IsReminded { get; set; }
        public DateTime ReminderTime { get; set; }
        public String Picture { get; set; }
        public TaskOccurType OccurType { get; set; }
        public TaskStatus Status { get; set; }

        public Account Owner { get; set; }
        public Category TaskCategory { get; set; }
        public Project TaskProject { get; set; }

        public override string ToString()
        {
            return "Tas:" + Name;
        }
    }

    public enum TaskPriority
    {
        Normal=0,
        Low=1,
        High=2
    }
    public enum TaskOccurType
    {
        Once=0,
        Daily=1,
        Weekly=2,
        Monthly=3,
        Yearly=4,
    }
    public enum TaskStatus
    {
        Active=0,
        Completed=1,
        Missed=2
    }
}